<?php
/*
 * Created on 14.10.2007
 *
 * filename: index.php5
 */
// error_reporting(E_ALL);
 include('include/startup.php5'); 

 session_start();
  
 $router = new New_Router();

 try{
 	$result = $router->delegate();	
 } catch (PDOException $e) {
	error_log("DB Error!: " . $e->getMessage() . ' in: '.$e->getFile().' at: '.$e->getLine());
	
 } catch (Exception $e) {
 	error_log("Error!: " . $e->getMessage());
 	Header('Location: /error.html');
 }
